# This code should not depend on Views.

include_rules = [
  "-ui/views",
  "+ui/views/buildflags.h",
  "+ui/views/corewm",
  "+ui/views/views_export.h",
  "+ui/views/views_features.h"
]

# TODO: temporary, don't add more.
specific_include_rules = {
  "tooltip_controller.cc": [
    "+ui/views/widget/tooltip_manager.h",
  ],

  "tooltip_aura.cc": [
    "+ui/views/widget/widget.h",
  ],

  "tooltip_view_aura.cc": [
    "+ui/base/metadata/metadata_header_macros.h",
    "+ui/base/metadata/metadata_impl_macros.h",
    "+ui/views/background.h",
    "+ui/views/border.h",
    "+ui/views/painter.h",
  ],

  "tooltip_lacros.cc": [
    "+ui/views/widget/desktop_aura/desktop_window_tree_host_lacros.h",
  ],

  "desktop_capture_controller_unittest.cc": [
    "+ui/views/test/native_widget_factory.h",
    "+ui/views/test/widget_test.h",
    "+ui/views/view.h",
    "+ui/views/widget/desktop_aura/desktop_native_widget_aura.h",
    "+ui/views/widget/desktop_aura/desktop_screen_position_client.h",
    "+ui/views/widget/root_view.h",
    "+ui/views/widget/widget.h",
  ],

  "tooltip_controller_unittest.cc": [
    "+ui/views/test/desktop_test_views_delegate.h",
    "+ui/views/test/native_widget_factory.h",
    "+ui/views/test/test_views_delegate.h",
    "+ui/views/test/views_test_base.h",
    "+ui/views/view.h",
    "+ui/views/widget/desktop_aura/desktop_native_widget_aura.h",
    "+ui/views/widget/desktop_aura/desktop_screen.h",
    "+ui/views/widget/tooltip_manager.h",
    "+ui/views/widget/widget.h",
  ],

  "tooltip_aura.h": [
    "+ui/views/widget/widget_observer.h",
  ],

  "tooltip_view_aura.h": [
    "+ui/views/view.h",
  ],

  "tooltip_controller_test_helper.h": [
    "+ui/views/view.h",
  ],

  "capture_controller_unittest.cc": [
    "+ui/views/test/views_test_base.h",
    "+ui/views/view.h",
    "+ui/views/widget/desktop_aura/desktop_native_widget_aura.h",
    "+ui/views/widget/desktop_aura/desktop_screen_position_client.h",
    "+ui/views/widget/root_view.h",
    "+ui/views/widget/widget.h",
  ],
}
